import {getBanner} from "../../../api/index"
import { observable, action, runInAction } from "mobx"
class SreachStore {
    @observable Sreach_store = []
    @action.bound get_sreach() {
        const _this = this
        getBanner()
            .then(res => {
                runInAction(function(){
                   _this.Sreach_store = res.banners
                })
            })
    }
    constructor(root) {
        this.RootStore = root
    }
}
export default SreachStore